function ok()
{
	var eamineeId = document.getElementById("eamineeId").value;
	
	if(eamineeId=="" || eamineeId==null)
		alert("身份证号不能为空！");
		else
		passByValue(eamineeId)}
	


function passByValue(eamineeId)
{
	$.ajax({
		type:'GET',
		cache:false,
		url:rootPath+"/getPostalByCardId",
		async:true,
		data:{
			cardId:eamineeId
		},
		success:function(result)
		{
			
			if(result.code == 100)
			{
				var results=result.extend.Postals;
				window.sessionStorage.setItem("eamineeId",results.examineeId);
				window.sessionStorage.setItem("card",results.card);
				window.location.href = "postal.html";
			}
			else
			{
				alert(result.extend.code);
			}
		}
	});
}

function resetValue()
{
	document.getElementById("eamineeId").value = "";
}